package com.idrem.asynctask;

import java.util.HashMap;

import com.idrem.data.DataSource;
import com.idrem.data.model.ConstantRS;
import com.idrem.data.url.UrlParamsKey;

public class ConstantAsyncTask extends BaseAsyncTask<String, Void, ConstantRS> {

	@Override
	protected ConstantRS doInBackground(String... params) {
		if (params.length > 0) {

			HashMap<String, String> marketViewsParams = new HashMap<String, String>();
			marketViewsParams.put(UrlParamsKey.TYPE, params[0]);
			marketViewsParams.put(UrlParamsKey.USERNAME, params[1]);

			return DataSource.getInstance().getConstantData(marketViewsParams);

		}
		return null;
	}

}
